﻿
// focusDlg.h : 头文件
//

#pragma once


// CfocusDlg 对话框
class CfocusDlg : public CDialogEx
{
// 构造
public:
	CfocusDlg(CWnd* pParent = NULL);	// 标准构造函数

// 对话框数据
	enum { IDD = IDD_FOCUS_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持
	void OnFullScreen(bool m_bFullScreen);
    int open_document(CString &file_name);
    LPCTSTR get_doc_type();
	void processSupervision(CString &filename, CString &pathname, long timecount);
	void PrintProcessNameAndID(DWORD processID);
	DWORD ProgramID(CString &name);
	//BOOL CALLBACK EnumWndProc(HWND hwnd, LPARAM lParam);
	void GetCurTopWindows(CString &name);
	bool CfocusDlg::IsTheSameTopWindowsHWD(CString &name);
	//void processSupervision();


// 实现
protected:
	HICON m_hIcon;

	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	CString type_reading;
	CString pathname;
	CString filename;
    CRect rect;
    //bool m_bFullScreen;
	int timecount;
	afx_msg void OnBnClickedButton1();
	afx_msg void OnCbnSelchangeCombo2();
    afx_msg void OnCbnSelchangeCombo1();
};
